package cn.wx.properties;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

import static cn.wx.properties.WxMaProperties.PREFIX;

@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties(prefix = PREFIX)
public class WxMaProperties extends MaProperties {

    public static final String PREFIX = "wx.ma";

    /**
     * 开关
     */
    private boolean enabled = true;

    /**
     * 多个小程序配置
     */
    private List<MaProperties> multiple;

}